{include file = $admin_header1}
{include file = $admin_header2}
{include file = $admin_leftsidebar}

<div class="middel_panel">
<h1 class="type2">{if 0 lt $faq->getId()}Edit{else}Add{/if} FAQ</h1>
<div class="holdthisTop">
      {if 0 lt $error_messages|@count}
      	<div align="center" class="error" style='border:2px red;font-size:12px; '>
      	<ul>
		{foreach item=error_message from=$error_messages}
			<li style="padding:5px 5px 5px 10px;text-align:left;">{$error_message}</li>
		{/foreach}
		</ul>
		</div>
		<div class='clr'></div>
	{/if}
  <table width="100%"  align="center">
    <tr>
      <td>
        <form name="frmFaq" method="post" action="{$site_path}/admin/faq/insert_update_faq" enctype="multipart/form-data" >
          <input type="hidden" name="faq[id]" id="faq_id" value="{$faq->getId()}" />
          <table width="100%"  border="0" cellpadding="6" cellspacing="2" class="datagrid">
            <tr>
             <td width="10%" align="right" valign="top">Question:<font color="red"> *</font> </td>
             
              <td align="left"><input type="text" name="faq[question]" id="faq_question" size="80" maxlength="100" value="{$faq->getQuestion()}" />
              
             </td>
            </tr>
	   	    <tr>
              <td valign="top" align="right" >Answer: </td>
              <td valign="top">{$fckeditor->Create()}</td>
            </tr>
            <tr>
              <td align="right" valign="top"></td>
              <td>
					<div class="buttons">	
						<input type="submit" name="Submit" value="{if 0 lt $faq->getId()}Update{else}Save{/if}" class="button1" />
					</div>
               		<div class="buttons">
               			<input type="button" name="Cancel" value="Cancel" class="button1" onclick="javascript: history.back();" />
               		</div>
               </td>
            </tr>
          </table>
        </form></td>
    </tr>
  </table>
</div>
</div>
								<!--middel panel ends -->
                  </div>
                  <!--main content ends -->
                  <!--content ends -->
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      </div>
    </div>
    <!--Banner ends -->
  </div>
  <!--    content area ends -->
{include file = $admin_footer}